package com.lambda.swipeback;

import android.os.Looper;
import android.os.Message;

public class ToolsAP implements ToolsAr.a {
    private static final String TAG = "MicroMsg.MMHandler";
    private SdkB handler;

    public ToolsAP() {
        if (Looper.myLooper() == null) {
            ad.w(TAG, "[MMHandler] myLooper() == null loopTag:%s", GA.getTag());
            this.handler = new SdkB(ToolsBu.bA(GA.getTag(), TAG), null,  this);
            return;
        }
        this.handler = new SdkB(this);
        if (getLooper().getThread().getName().equals("initThread")) {
            ad.e(TAG, "MMHandler can not init handler with initThread looper, stack %s", ToolsBu.eqQ());
        }
    }

    public ToolsAP(Looper looper) {
        this.handler = new SdkB(looper, this);
        if (looper.getThread().getName().equals("initThread")) {
            ad.e(TAG, "MMHandler can not init handler with initThread looper, stack %s", ToolsBu.eqQ());
        }
    }

    public final Looper getLooper() {
        return this.handler.eoP();
    }

    @Override
    public void handleMessage(Message message) {

    }

    @Override
    public void onLog(Message message, Runnable runnable, Thread thread, long j, long j2, long j3, float f) {

    }

    @Override
    public void onTaskAdded(Runnable runnable, ToolsAx axVar) {

    }

    @Override
    public void onTaskRunEnd(Runnable runnable, ToolsAx axVar) {

    }

    public final boolean post(Runnable runnable) {
        return this.handler.post(runnable);
    }
}
